package com.mydemo.thread;

import java.util.concurrent.Callable;

/**
 * <p></p >
 *
 * @author liming1
 * @version $Id: CallThread, v1.0 2019-09-17 14:06 liming1 Exp $
 */
public class CallThread implements Callable {
    private String name;

    public CallThread(String name) {
        this.name = name;
    }

    @Override
    public Object call() throws Exception {
        System.out.println(name + "CallThread执行开始");
        Thread.sleep(10000L);
        System.out.println(name + "CallThread执行完毕");
        return this.name;
    }
}
